package com.traitswu.simple.demo.service;

import com.traitswu.simple.demo.store.FileDesc;

import java.io.IOException;
import java.io.InputStream;

public interface FileUpdownService {

    FileDesc upload(InputStream inputStream, String path) throws IOException;

    FileDesc uploadBeforeConfirm(InputStream inputStream, String path) throws IOException;

    FileDesc uploadAfterConfirmed(FileDesc tmp) throws IOException;

    InputStream download(FileDesc fileDesc) throws IOException;

    InputStream download(String url) throws IOException;


}
